home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / pas_all.zip / TI190.ASC < prev    next >
Text File  |  1991-09-11  |  6KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.   PRODUCT : TURBO PASCAL                               NUMBER : 190
  10.   VERSION : 3.0xx
  11.        OS : PC-DOS
  12.      DATE : August 1, 1986                               PAGE : 1/3
  13.     TITLE : TANDY 2000 PATCH
  14.  
  15.  
  16.  
  17.  
  18.   The following example routines are public domain programs that
  19.   have been uploaded to our Forum on CompuServe. As a courtesy to
  20.   our users that do not have immediate access to CompuServe,
  21.   Technical Support distributes these routines free of charge.
  22.  
  23.   However, because these routines are public domain programs, not
  24.   developed by Borland International, we are unable to provide any
  25.   technical support or assistance using these routines. If you need
  26.   assistance using these routines, or are experiencing
  27.   difficulties, we recommend that you log onto CompuServe and
  28.   request assistance from the Forum members that developed these
  29.   routines.
  30.  
  31.   The IBM-PC implementation of Turbo Pascal version 3.0 uses a
  32.   memory-mapped editor. This is much faster than earlier versions
  33.   of Turbo that used the IBM-PC BIOS. Several patches are required
  34.   for the Tandy 2000 to use the editor in the IBM-PC implementation
  35.   of Turbo Pascal 3.0.
  36.  
  37.   The screen memory of the Tandy 2000 is organized in much the same
  38.   manner as the IBM-PC. The provided patch results in a copy of the
  39.   TURBO.COM file with the following properties:
  40.  
  41.   1. Normal text in the editor is displayed in NORMAL intensity.
  42.   2. A marked block of text is displayed in INVERSE video.
  43.   3. The "NEW FILE" and "NO FILES" messages BLINK.
  44.  
  45.   The video attribute which is used to control the highlighting of
  46.   selected blocks of text also controls the attribute of the "NEW
  47.   FILE" and "NO FILES" messages. Since in one case the attribute is
  48.   written directly to video RAM, and in the other  it is passed to
  49.   an MS-DOS output routine, the resulting  attributes are
  50.   different.
  51.  
  52.   Have the following information ready before attempting the
  53.   required patches:
  54.  
  55.   1. Screen memory address
  56.   ---------------------
  57.   The location of screen memory depends on the amount of RAM
  58.   installed in the Tandy 2000. The following table gives the  video
  59.   address for each increment of 128K RAM installed:
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.   PRODUCT : TURBO PASCAL                               NUMBER : 190
  76.   VERSION : 3.0xx
  77.        OS : PC-DOS
  78.      DATE : August 1, 1986                               PAGE : 2/3
  79.     TITLE : TANDY 2000 PATCH
  80.  
  81.  
  82.  
  83.  
  84.        RAM      Screen RAM address (hex)
  85.       ------   -------------------------
  86.        128K            1EC0
  87.        256K            3EC0
  88.        384K            5EC0
  89.        512K            7EC0
  90.        640K            9EC0
  91.        768K            BEC0
  92.  
  93.   2. Patch location in the TURBO file
  94.      --------------------------------
  95.   The patch location in the file depends upon which version of
  96.   Turbo Pascal is being modified. As of this writing, six distinct
  97.   versions exist:
  98.  
  99.        versions 3.00x      versions 3.01x
  100.        --------------      --------------
  101.         regular             regular
  102.          8087                8087
  103.          BCD                 BCD
  104.  
  105.    Note: The version letter (x) is not significant since it does
  106.   not affect patch locations.
  107.  
  108.   The following table gives the patch address for each of the above
  109.   versions:
  110.  
  111.      TURBO PASCAL version number     Patch address (hexadecimal)
  112.     -----------------------------   -----------------------------
  113.      TURBO.COM    3.00x              3FC0
  114.      TURBO-87.COM 3.00x              3A89
  115.      TURBOBCD.COM 3.00x              3EE1
  116.      TURBO.COM    3.01x              4088
  117.      TURBO-87.COM 3.01x              3B51
  118.      TURBOBCD.COM 3.01x              3FA9
  119.  
  120.  
  121.   Modifying the TURBO PASCAL file
  122.   -------------------------------
  123.  
  124.   1. Use TINST to install Turbo Pascal for the screen type "b/w
  125.   display 80x25." If you are patching the 8087 and/or BCD versions,
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.   PRODUCT : TURBO PASCAL                               NUMBER : 190
  142.   VERSION : 3.0xx
  143.        OS : PC-DOS
  144.      DATE : August 1, 1986                               PAGE : 3/3
  145.     TITLE : TANDY 2000 PATCH
  146.  
  147.  
  148.  
  149.  
  150.   you must install each file separately by  temporarily renaming it
  151.   to TURBO.COM before running TINST.
  152.  
  153.   2. Now use the DEBUG program supplied on the Tandy DOS diskette
  154.   to install the patch (user input is in UPPERCASE; system  output
  155.   in lowercase). "XXXX" represents the address of the  video
  156.   segment
  157.  
  158.   3. pppp represents the patch address previously listed.
  159.  
  160.   4. ssss represents the screen memory address previously listed.
  161.  
  162.   Use the DOS utility, DEBUG, to apply the following patch to a
  163.   copy of your .COM file. Copy DEBUG.COM into the directory (or
  164.   onto the diskette) where your working copy of .COM is located. At
  165.   the DOS prompt, type the following information exactly as it
  166.   appears. (Conclude each line by pressing <Enter>.)
  167.  
  168.   Note:
  169.   1.   DEBUG is not sensitive to upper and lower case. All
  170.        addresses are listed in upper case for ease of  readability.
  171.  
  172.   2.   While in DEBUG, the prompt will appear as a dash (-).
  173.  
  174.   3.   If you do not receive the appropriate response,  press "q",
  175.        then <Enter>, to quit. Check your  version numbers and, if
  176.        correct, try again.
  177.  
  178.  
  179.   YOU TYPE                   THIS APPEARS
  180.  
  181.        debug TURBO.COM                    -
  182.        aPPPP<Return>                      xxxx:pppp
  183.        mov DX,SSSS<Return>                xxxx:pppp+3
  184.        mov byte PTR [0000],OA<Return>     xxxx:pppp+8
  185.        mov byte PTR [0002],8A<RETURN>     xxxx:pppp+B
  186.        <Return>                           -
  187.        w<Return>                          writing xxxx bytes
  188.        q<Return>                          DOS prompt
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.   PRODUCT : TURBO PASCAL                               NUMBER : 190
  208.   VERSION : 3.0xx
  209.        OS : PC-DOS
  210.      DATE : August 1, 1986                               PAGE : 4/3
  211.     TITLE : TANDY 2000 PATCH
  212.  
  213.  
  214.  
  215.  
  216.   NOTE:     If additional memory is added at a later time, it will
  217.             be necessary to repeat the DEBUG portion of the patch
  218.             in order to account for the new location of the screen.
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.